<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <link rel="stylesheet" href="/css/shopping_car.css">
    <link rel="stylesheet" href="/libs/shopping_car/css/carts.css">
</head>
<body>
    <header></header>
    <main>
        <section class="cartMain">
            <div class="cartMain_hd" id="cartMain_hd">
                <ul class="order_lists cartTop">
                    <li class="list_chk">
                        <!--所有商品全选-->
                        <input type="checkbox" id="all" class="whole_check">
                        <label for="all"></label>
                        全选
                    </li>
                    <li class="list_con">商品信息</li>
                    <li class="list_info">商品参数</li>
                    <li class="list_price">单价</li>
                    <li class="list_amount">数量</li>
                    <li class="list_sum">金额</li>
                    <li class="list_op">操作</li>
                </ul>
            </div>
        
            <div class="cartBox">
                <div class="shop_info">
                    <div class="all_check">
                        <!--店铺全选-->
                        <input type="checkbox" id="shop_a" class="shopChoice">
                        <label for="shop_a" class="shop"></label>
                    </div>
                    <div class="shop_name">
                        店铺：<a href="javascript:;"></a>
                    </div>
                </div>
                <div class="order_content" id="order_contentList">
                    
                   
                </div>
                <script type="text/html" id="order_listsTemplate">
                    {{each cart shop}}
                    <ul class="order_lists" data-id="{{shop.id}}">
                        <li class="list_chk">
                            <input type="checkbox" id="{{shop.id}}" class="son_check">
                            <label for="{{shop.id}}"></label>
                        </li>
                        <li class="list_con">
                            <div class="list_img"><a href="javascript:;"><img src="{{shop.photo[0].url}}" alt=""></a></div>
                            <div class="list_text"><a href="/html/buy.html?id={{shop.id}}">{{shop.title}}</a></div>
                        </li>
                        <li class="list_info">
                            <p>规格：默认</p>
                            <p>尺寸：16*16*3(cm)</p>
                        </li>
                        <li class="list_price">
                            <p class="price">￥{{shop.price}}</p>
                        </li>
                        <li class="list_amount">
                            <div class="amount_box">
                                <a href="javascript:;" class="reduce reSty">-</a>
                                <input type="text" value="1" class="sum">
                                <a href="javascript:;" class="plus">+</a>
                            </div>
                        </li>
                        <li class="list_sum">
                            <p class="sum_price">￥{{(shop.price*shop.count).toFixed(2)}}</p>
                        </li>
                        <li class="list_op">
                            <p class="del"><a href="javascript:;" class="delBtn">移除商品</a></p>
                        </li>
                    </ul>
                    {{/each}}
                </script>
            </div>
            
            <div class="empty" id="cart-empty">
                <p><i class="iconfont">&#xe618;</i>您的购物车还没有商品!</p>
                <a href="/index.html">返回首页</a>
                <a href="/html/online_shop.html">去选款式</a>
            </div>

            <!-- 底部 -->
            <div class="bar-wrapper">
                <div class="bar-right">
                    <div class="piece">已选商品<strong class="piece_num">0</strong>件</div>
                    <div class="totalMoney">共计: <strong class="total_text">0.00</strong></div>
                    <div class="calBtn"><a href="javascript:;">结算</a></div>
                </div>
            </div>
        </section>
        <section class="model_bg"></section>
        <section class="my_model">
            <p class="title">删除宝贝<span class="closeModel">X</span></p>
            <p>您确认要删除该宝贝吗？</p>
            <div class="opBtn"><a href="javascript:;" class="dialog-sure">确定</a><a href="javascript:;" class="dialog-close">关闭</a></div>
        </section>
    </main>
    <script src="/libs/require/require.min.js" data-main="/js/shopping_car"></script>
</body>
</html>